<h1>Code Model - Testing</h1>
<h3>Show Details</h3>

<style>
    th{border: 1px solid #dedede; padding: 2px 7px; font-size: 12px;}
    td{border: 1px solid #dedede; padding: 2px 7px; font-size: 12px;}
</style>

<table>
    <th>id</th>
    <th>name</th>
    <th>description</th>
    <th>1-3</th>
    <th>4-7</th>
    <th>8-15</th>
    <th>abc</th>
    <th>ac</th>
    <th>cd</th>
    <th>airbag</th>
    <th>user_id</th>
    <?
        if(isset($car_details))
            foreach($car_details as $val):?>

            <tr>
                <td><?=$val->id?></td>
                <td><?=$val->name?></td>
                <td><?=$val->description?></td>
                <td><?=$val->day13price?></td>
                <td><?=$val->day47price?></td>
                <td><?=$val->day815price?></td>
                <td><?=$val->abs?></td>
                <td><?=$val->ac ?></td>
                <td><?=$val->cd ?></td>
                <td><?=$val->airbag ?></td>
                <td><?=$val->user_id ?></td>
            </tr>

            <?endforeach;?>
</table>